<%-- 
    Document   : Test
    Created on : Jun 29, 2013, 12:14:12 AM
    Author     : Trung
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script src="jquery.js" type="text/javascript">
        </script>

        <script>
            $(document).ready(function() {
                $("p").click(function() {
                    $("#key").val("232");
                    $("form").submit();
                });
                $("p").click(function() {
                    $("#key").val("333");
                    $("form").submit();
                });
                $("p").click(function() {
                    $("#key").val("444");
                    $("form").submit();
                });
                $("p").click(function() {
                    $("#key").val("555");
                    $("form").submit();
                });
            });
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <a href="./test?id=1">áas
        </a>
        <a href="./test?id=2">sasa
        </a>
        <form action="./TestSevlet">
            <input hidden type="text" name="key" value="" id="key"/>
            <p>qwwew </p>
            <ul>
                <li value="122">qw</li>
                <li value="233">we</li>
            </ul>
            <input type="submit" value="delete" name="1">
            </input>
        </form>
    </body>
</html>
